package com.ctshk.rpc.user.service;

import com.ctshk.common.dto.Result;
import com.ctshk.common.model.PageResponse;
import com.ctshk.rpc.user.dto.UserCollectionHeadDTO;
import com.ctshk.rpc.user.dto.UserCollectionListDTO;
import com.ctshk.rpc.user.req.UserCollectionBatchCancelReq;
import com.ctshk.rpc.user.req.UserCollectionPageReq;
import com.ctshk.rpc.user.req.UserCollectionReq;

import java.util.List;

/**
 * <p>
 *  用户收藏接口
 * </p>
 *
 * @author 李新科
 * @date 2021/5/17 20:44
 */
public interface IUserCollectionService {
    Result<PageResponse<UserCollectionListDTO>> queryPage(UserCollectionPageReq req);

    Result<List<Object>> add(UserCollectionReq req);

    Result<List<Object>> delete(Long detailsId, Long userId);

    Result batchDelete(UserCollectionBatchCancelReq req);

    Result<UserCollectionHeadDTO> queryHead(Long userId);

    Integer countByUserId(Long userId);

    Result<Boolean> isCollect(Long productId, Long userId);

    Result<List<Object>> collectedlist(Long userId);
}
